package com.platform.wechat.service.impl;

import com.platform.wechat.common.JsonBean;
import com.platform.wechat.mapper.ProblemMapper;
import com.platform.wechat.service.ProblemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author CX
 * @create 2021-08-01 20:11
 */
@Service
public class ProblemServiceImpl implements ProblemService {

    @Autowired
    private ProblemMapper problemMapper;

    @Override
    public JsonBean selectByPrimaryType(Integer problemType) {

        return new JsonBean(0,"ok",problemMapper.selectByPrimaryType(problemType));
    }
}
